package com.gzh.springboot.controller;

import com.gzh.custom.spring.boot.autoconfigure.CustomProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @package: com.gzh.springboot.controller
 * @Auther: Pf.Guo
 * @Date: Created in 2021/5/10 11:00
 */
@RestController
public class TestController {
    @Autowired
    private CustomProperties properties;

    @GetMapping("/test")
    public String test() {
        System.out.println(properties.getPassword());
        return String.format("username:%s;password:%s",
                properties.getUsername(),
                properties.getPassword());
    }
}
